package com.hu.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author HU
 * @since 2019-03-01
 */
public class Student extends Model<Student> {

    private static final long serialVersionUID = 1L;

    /**
     * 学号
     */
    @TableId("StudentNo")
    private Integer StudentNo;

    @TableField("LoginPwd")
    private String LoginPwd;

    /**
     * 学生姓名
     */
    @TableField("StudentName")
    private String StudentName;

    /**
     * 性别，取值0或1
     */
    @TableField("Sex")
    private Boolean Sex;

    /**
     * 年级编号
     */
    @TableField("GradeId")
    private Integer GradeId;

    /**
     * 联系电话，允许为空，即可选输入
     */
    @TableField("Phone")
    private String Phone;

    /**
     * 地址，允许为空，即可选输入
     */
    @TableField("Address")
    private String Address;

    /**
     * 出生时间
     */
    @TableField("BornDate")
    private LocalDateTime BornDate;

    /**
     * 邮箱账号，允许为空，即可选输入
     */
    @TableField("Email")
    private String Email;

    /**
     * 身份证号
     */
    @TableField("IdentityCard")
    private String IdentityCard;

    public Integer getStudentNo() {
        return StudentNo;
    }

    public void setStudentNo(Integer StudentNo) {
        this.StudentNo = StudentNo;
    }
    public String getLoginPwd() {
        return LoginPwd;
    }

    public void setLoginPwd(String LoginPwd) {
        this.LoginPwd = LoginPwd;
    }
    public String getStudentName() {
        return StudentName;
    }

    public void setStudentName(String StudentName) {
        this.StudentName = StudentName;
    }
    public Boolean getSex() {
        return Sex;
    }

    public void setSex(Boolean Sex) {
        this.Sex = Sex;
    }
    public Integer getGradeId() {
        return GradeId;
    }

    public void setGradeId(Integer GradeId) {
        this.GradeId = GradeId;
    }
    public String getPhone() {
        return Phone;
    }

    public void setPhone(String Phone) {
        this.Phone = Phone;
    }
    public String getAddress() {
        return Address;
    }

    public void setAddress(String Address) {
        this.Address = Address;
    }
    public LocalDateTime getBornDate() {
        return BornDate;
    }

    public void setBornDate(LocalDateTime BornDate) {
        this.BornDate = BornDate;
    }
    public String getEmail() {
        return Email;
    }

    public void setEmail(String Email) {
        this.Email = Email;
    }
    public String getIdentityCard() {
        return IdentityCard;
    }

    public void setIdentityCard(String IdentityCard) {
        this.IdentityCard = IdentityCard;
    }

    @Override
    protected Serializable pkVal() {
        return this.StudentNo;
    }

    @Override
    public String toString() {
        return "Student{" +
        "StudentNo=" + StudentNo +
        ", LoginPwd=" + LoginPwd +
        ", StudentName=" + StudentName +
        ", Sex=" + Sex +
        ", GradeId=" + GradeId +
        ", Phone=" + Phone +
        ", Address=" + Address +
        ", BornDate=" + BornDate +
        ", Email=" + Email +
        ", IdentityCard=" + IdentityCard +
        "}";
    }
}
